/* 
 * Enterprise Library Extensions - DI + ORM.
 * Copyright (C) 2006
 *
 * GNU General Public License
 *
 * This program is free software; you can redistribute 
 * it and/or modify it under the terms of the GNU General Public License 
 * as published by the Free Software Foundation; either version 2 of the 
 * License, or (at your option) any later version.
 * 
 * This program is distributed in the hope that it will be useful, but 
 * WITHOUT ANY WARRANTY; without even the implied warranty of 
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 
 * See the GNU General Public License for more details.
 */
using System;

namespace ELE.EnterpriseLibrary.Naming
{
	/// <summary>
  /// This exception is thrown when a naming operation proceeds to a point where a context is required to continue 
  /// the operation, but the resolved object is not a context. For example, Context.destroy() requires that the 
  /// named object be a context. If it is not, NotContextException is thrown. Another example is a non-context 
  /// being encountered during the resolution phase of the Context methods. 
  /// <br/><br/>It is also thrown when a particular subtype of context is required, such as a DirContext, and the 
  /// resolved object is a context but not of the required subtype. 
  /// <br/><br/>Synchronization and serialization issues that apply to NamingException apply directly here. 
	/// </summary>
	public class NotContextException : NamingException
	{
    /// <summary>
    ///  Constructs a new instance of NotContextException.
    /// </summary>
		public NotContextException():base()
		{
    }
    /// <summary>
    /// Constructs a new instance of NotContextException using an explanation
    /// </summary>
    /// <param name="message">explanation</param>
    public NotContextException(string message):base(message)
    {
    }
	}
}
